/*
 * @Author: your name
 * @Date: 2021-07-30 09:38:54
 * @LastEditTime: 2021-08-05 17:39:29
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \cms_screen_frontend\src\apis\First\RightOneTopOne\api.ts
 */
import {request} from '../../../util/promise';

// 获取滚屏标题
export const getSlideTitle = async (data) => {
    return await request('log/tomoTlp', 'POST', data);
};

// 获取预测警报前十名
export const getPredictWaring = async (data) => {
    return await request('log/alarmTop', 'POST', data);
};

// 获取日志Top10
export const getTop10 = async (data) => {
    return await request('log/errorTop10', 'POST', data);
};
// 获取错误率前十名
export const getError = async (data) => {
    return await request('log/errorRate', 'POST', data);
};


// 获取上次日志输入的年龄
export const getBeforeAge = async (data) => {
    return await request('log/data_view', 'POST', data);
};

// 获取上次日志输入的年龄图表
export const getBeforeAgeChart = async (data) => {
    return await request('log/over_time_list', 'POST', data);
};

// 获取每小时光束
export const getLightHour = async (data) => {
    return await request('log/MVCT_sub', 'POST', data);
};

// 获取patient TX前五名
export const getPatientTX = async (data) => {
    return await request('log/Patient_num', 'POST', data);
};
// 获取异常中断统计
export const getExceptionInterrupt = async (data) => {
    return await request('log/Exception_Interrupt', 'POST', data);
};
// 获取设备负荷
export const getEquipmentLoad = async (data) => {
    return await request('log/Equipment_load', 'POST', data);
};
// 获取patient MVCT前十名
export const getPatientMVCT = async (data) => {
    return await request('log/Tx_MVCT_Error_Num', 'POST', data);
};

// 获取设备图标
export const getMacLogo = async (data) => {
    return await request('log/Device_info', 'POST', data);
};

// 获取设备图标
export const getMacInfo = async (data) => {
    return await request('smx/MachineLogo', 'POST', data);
};
